package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 销售订单实体类
 */
public class SaleOrderBean {
    /**销售订单编号*/
    private int id;
    /**客户名称*/
    private String customerName;
    /**销售员*/
    private String saller;
    /**销售日期*/
    private LocalDate saleDate = LocalDate.now();
    /**订单金额*/
    private int amount;
    /**送货地址*/
    private String address;
    /**出库物品明细*/
    private List<SaleInfoBean> saleInfoList;

    public SaleOrderBean() {

    }

    public SaleOrderBean(String customerName, String saller, int amount, String address) {
        this.customerName = customerName;
        this.saller = saller;
        this.amount = amount;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getSaller() {
        return saller;
    }

    public void setSaller(String saller) {
        this.saller = saller;
    }

    public LocalDate getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(LocalDate saleDate) {
        this.saleDate = saleDate;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<SaleInfoBean> getSaleInfoList() {
        return saleInfoList;
    }

    public void setSaleInfoList(List<SaleInfoBean> saleInfoList) {
        this.saleInfoList = saleInfoList;
    }

    @Override
    public String toString() {
        return "SaleOrderBean{" +
                "id=" + id +
                ", customerName='" + customerName + '\'' +
                ", saller='" + saller + '\'' +
                ", saleDate=" + saleDate +
                ", amount=" + amount +
                ", address='" + address + '\'' +
                ", saleInfoList=" + saleInfoList +
                '}' + "\n";
    }
}
